package com.zzz.mybatisdemo.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @BelongsProject: mybatis-demo
 * @BelongsPackage: com.zzz.mybatisdemo.pojo.entity
 * @Author: zhai
 * @CreateTime: 2025-09-29  18:31
 * @Description: TODO
 * @Version: 1.0
 */
@TableName("tbl_employee")
@Data
public class Employee {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("last_name")
    private String lastName;
    private String email;
    private String gender;
    private Integer age;
    @TableLogic(value = "1",delval = "0") // 逻辑删除
    private Integer enable;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public Integer getEnable() {
        return enable;
    }
}
